<div class="t_container">
  <div class="t_topin">
    <h1><a href="/index.aspx" title="鸿马网">鸿马网</a></h1>    
    <script type="text/javascript">
        $(document).ready(function () {
            $(".dropdown img.flag").addClass("flagvisibility");

            $(".dropdown dt a").click(function () {
                $(".dropdown dd ul").toggle();
            });

            $(".dropdown dd ul li a").click(function () {
                var text = $(this).html();
                $(".dropdown dt a span").html(text);
                $(".dropdown dd ul").hide();
                $("#result").html(getSelectedValue("sample"));
            });

            function getSelectedValue(id) {
                return $("#" + id).find("dt a span.value").html();
            }

            $(document).bind('click', function (e) {
                var $clicked = $(e.target);
                if (!$clicked.parents().hasClass("dropdown"))
                    $(".dropdown dd ul").hide();
            });


            $("#flagSwitcher").click(function () {
                $(".dropdown img.flag").toggleClass("flagvisibility");
            });
        });
function submitTest() {
            if ($("#d_search").val() == "")
            { return false; }
            else {
                return true;
            }
        }
    </script>
    <div class="t_search_wrapper">
      <div class="t_search_bg">
        <div class="t_search">
        <form method="get"  action="/search.aspx"   onsubmit='return submitTest()'>
          <div class="t_search_left">
            <div class="t_search_container"><input id="d_search" class="d_search_input" name="keyword" type="text" /><input id="result" name="type" value="0" type="hidden" /></div>
            <dl id="sample" class="dropdown">
              <dt><a href="#"><span>全站资源</span></a></dt>
              <dd>
                <ul> 
                <li><a href="#">全站资源<span class="value">0</span></a></li>
                <li><a href="#">网站设计<span class="value">11</span></a></li>
                <li><a href="#">图片库<span class="value">10</span></a></li>
                <li><a href="#">JS特效<span class="value">13</span></a></li>
                  <li><a href="#">有趣的事<span class="value">1</span></a></li>
                </ul>
              </dd>
            </dl>
          </div>
          <div class="t_search_right"><input class="t_button" value="" type="submit" /></div>
          </form>
        </div>
      </div>
    </div>
    <div class="tmlogin">
      <ul>
      <li class="tcontact"><a rel="nofollow"  id="a15" href="<%linkurl("contact_sub","")%>">联系我们</a></li>
      <li class="tlogin"><a rel="nofollow" href="#">登录</a></li>
      </ul>
    </div>
  </div>
</div>

<header>
  <div class="i_menu">
    <div class="menu">
      <ul>
   <li><a id="a0"  href="/" >鸿马首页</a></li>
      <li><a id="a11" href="<%linkurl("design_list1","")%>">网站设计</a></li>
       <li><a id="a14" href="<%linkurl("services","")%>">鸿马服务</a></li>
      <li><a id="a13" href="<%linkurl("ajax_list1","")%>">JS特效</a></li>
      <li><a id="a10" href="<%linkurl("photo_list1","")%>">图片库</a></li>
      <li><a id="a1" href="<%linkurl("article_list1","")%>">有趣的事</a></li>


 </ul>
    <script type="text/javascript">
        document.getElementById('a{channel_id}').className = 'active';
    </script>
  
    </div>
    <div class="imenu_right"><a href="<%linkurl("content","about")%>">关于我们</a><a href="http://weibo.com/ihongma"  target="_blank">微博关注</a></div>
  </div>
</header>